package com.zhichat.web.dto;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName: MsgUploadFileDTO
 * @Description: 文件聊天消息上传DTO
 * @Author: insanetz
 * @CreateDate: 2025/2/22 19:30
 */
@Data
public class MsgUploadFileDTO implements Serializable {
    /**
     * 消息id
     */
    @NotBlank(message = "消息id不能为空")
    private String msgId;
    /**
     * 文件
     */
    @NotNull(message = "文件不能为空")
    private MultipartFile file;
    /**
     * 文件封面
     */
    private MultipartFile cover;
}
